package it.koutifaris.travianmap.mapsqlparser;

import it.koutifaris.travianmap.mapsqlparser.MapSqlParser.RemoteSource.StreamWrapper;

import java.io.InputStream;

import org.apache.commons.io.input.CountingInputStream;

class CountingStreamWrapper implements StreamWrapper {

	private CountingInputStream countingInputStream;

	@Override
	public InputStream wrap(InputStream inputStream) {
		countingInputStream = new CountingInputStream(inputStream);
		return countingInputStream;
	}

	CountingInputStream getCountingInputStream() {
		return countingInputStream;
	}

}
